#pragma once
#include <iostream>
using std::ostream;
//#define VALUE_ERROR
class Point
{
private:
	int x;
	int y;
public:
	Point(int x = 0, int y = 0)
#ifdef VALUE_ERROR
		throw(std::overflow_error)
#endif
		;
	Point operator++();
	Point operator++(int);
	Point operator--();
	Point operator--(int);

	friend ostream& operator<<(ostream& ot, Point a);
};

ostream& operator<<(ostream& ot, Point a);